package com.jinlia.show.modules.wxapp.model.vo;

import com.jinlia.show.modules.base.model.po.OrderPO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

@Data
public class OrderVO extends OrderPO {
    //商品的合计价格
    private BigDecimal goodsSumMoney;
    public static OrderVO fromObject(Object entity) {
        OrderVO vo = new OrderVO();
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
}
